<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html lang="en">
    <head>
        <script src="__STATIC__/admin/hui/lib/jquery/1.9.1/jquery.min.js"></script>
<!--        <script src="__STATIC__/admin/hui/lib/jquery/1.9.1/jquery.md5.js"></script>-->
        
        <meta charset="UTF-8">
        <title>测试</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <form action="" method="post">
            <input type="text" name="tel">
            <button type="submit" id='getYZ'>获取验证码</button>
        </form>
        
        <input class="input" name="captcha" id="captcha" type="text" maxlength="11"/>
        <div>
            <img src="{:captcha_src()}" title="点击换一张" onClick="this.src = this.src + '?' + Math.random()" style="cursor:pointer; width: 100px"/>
            <!--<img src="{:captcha_src()}" title="点击换一张" onClick="checkPass()" style="cursor:pointer;"/>-->
        </div>
        
    
    
    <script type="text/javascript">
        function checkPass() {
            alert($.md5('123456'));
        }
     /*   var InterValObj; //timer变量，控制时间  
        var count = 60; //间隔函数，1秒执行  
        var curCount;//当前剩余秒数  
        
        $('#getYZ').click(function(){
            curCount = count;  
            //设置button效果，开始计时  
            $("#getYZ").css("background-color", "LightSkyBlue");  
            $("#getYZ").attr("disabled", "true");  
            $("#getYZ").html("获取" + curCount + "秒");  
            InterValObj = window.setInterval(SetRemainTime, 10); //启动计时器，1秒执行一次  
            //alert("验证码发送成功，请查收!");  
        })
        
        function SetRemainTime(){ 
            if (curCount == 0) {  
                window.clearInterval(InterValObj);//停止计时器  
                $("#getYZ").removeAttr("disabled");//启用按钮  
                $("#getYZ").css("background-color", "");  
                $("#getYZ").html("重发验证码");  
                //code = ""; //清除验证码。如果不清除，过时间后，输入收到的验证码依然有效  
            }  
            else {  
                curCount--;  
                $("#getYZ").html("获取" + curCount + "秒");  
            }  
    }  */
    </script></body>
</html>
